package frame

import (
	"gitee.com/git_public/vfaith/fount/persist"
	"gitee.com/git_public/vfaith/sugar/reflectx"
	"log"
)

// region 结构体定义&构造

type LogicDao struct {
	*persist.OexSqlxAlpha
	IxBaseMapper
}

func NewLogicDao[M IxBaseMapper]() *LogicDao {
	logicDao := reflectx.NewInstance[*LogicDao]()
	logicDao.OexSqlxAlpha = persist.GetOexDefault()

	logicDao.IxBaseMapper = reflectx.NewInstance[M]()
	logicDao.InitBasicMapper()
	if logicDao.GetCondition == nil {
		log.Fatal("Error：【未实例化BasicMapper】.")
	}

	return logicDao
}

// endregion

// region 标准CRUD

// endregion

// region 辅助方法

// endregion
